package com.xxy.shiro.service.impl;

import com.xxy.shiro.entity.User;
import com.xxy.shiro.mapper.UserMapper;
import com.xxy.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;


    @Override
    public User findByName(String username) {
        return userMapper.findByName(username);
    }
}
